I'm trying to build a Tensorflow.js app with react js, it works on Google Chrome, but when I try to run it on mozilla firefox, it downloads the .bin model and gives an error as seen in the title of this question. Below is the code that i wrote to load the model. I have searched for the root of error and it was caused by the loadGraphModel. But I don't understand why
const loadModel = async () => {
setIsModelLoading(true);
try {
const model = await loadGraphModel("./model/model.json");
setModel(model);
setIsModelLoading(false);
} catch (error) {
console.log(error);
setIsModelLoading(false);
}
};